
function fn1() {
  console.log(arguments);//输出对象
}
fn1(1, 2, 3, 4);


function fn2(...args) {
  console.log(args);//输出数组
}

fn2(1, 2, 3, 4);